package com.esiran.payadmin.wechat;

import com.esiran.payadmin.service.WechatPayService;

import java.io.InputStream;

public class SiteWXPayConfig extends WXPayConfig {
    @Override
    String getAppID() {
        return WechatPayService.APP_ID;
    }

    @Override
    String getMchID() {
        return WechatPayService.MCH_ID;
    }

    @Override
    String getKey() {
        return WechatPayService.API_KEY;
    }

    @Override
    InputStream getCertStream() {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain() {
        return new IWXPayDomain() {
            @Override
            public void report(String domain, long elapsedTimeMillis, Exception ex) {

            }

            @Override
            public DomainInfo getDomain(WXPayConfig config) {
                return new DomainInfo("api.mch.weixin.qq.com", true);
            }
        };
    }
}
